package java59_0319homework;

import java.util.Scanner;

public class Nine {
	public static void main(String[] args) {
		// 输入三个int型的数据，放入到a,b,c三个变量中去，使用条件结构与交换逻辑将这三个变量中的值从小到大排列。
		Scanner input = new Scanner(System.in);
		int a, b, c = 1;
		System.out.println("请输入第一个整数：");
		int num1 = input.nextInt();
		System.out.println("请输入第二个整数：");
		int num2 = input.nextInt();
		System.out.println("请输入第三个整数：");
		int num3 = input.nextInt();
		a = num1;
		b = num2;
		c = num3;
		if (a > b && a > c && b > c) {
			System.out.println(a + ">" + b + ">" + c);
		} else if (a > b && a > c && b < c) {
			System.out.println(num1 + ">" + num3 + ">" + num2);
		} else if (b > a && b > c && a > c) {
			System.out.println(num2 + ">" + num1 + ">" + num3);
		} else if (b > a && b > c && c > a) {
			System.out.println(num2 + ">" + num3 + ">" + num1);
		} else if (c > b && c > a && b > a) {
			System.out.println(num3 + ">" + num2 + ">" + num1);
		} else if (c > b && c > a && a > b) {
			System.out.println(c + ">" + a + ">" + b);
		}
	}
}